<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<!--#include file="../connections/connect.asp" -->
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
<%
		var user = Request.Form("userid")
		var quesID = Request.Form("questionID")
		var answer = Request.Form("answer")				
		
		var sql="select count(*) as kq from Customer c inner join RestorePassword r on c.QuestionID=r.QuestionID where CustomerID='"+ user +"' and r.QuestionID='"+ quesID +"' and Answer='"+ answer +"' "
			var kt=conn.Execute(sql)
			
		var sql1="select * from Customer Where CustomerID='"+user+"'"
			var get=conn.Execute(sql1)
			
			if(parseInt(kt.Fields("kq"))!=0)
			{
				Response.Write("Your password is:")
			%>
					<p><%=get("Password")%></p>
			<%
			}
			else
			{
				Response.Write("Faild, Try again!")			
			}
			%>
			<p><a href="../recover.asp">Quay lại</a></p>
            

</body>
</html>
